#ifndef NAMETABDIALOG_H
#define NAMETABDIALOG_H

#include <QDialog>

namespace Ui { class NameTabDialog; }

class NameTabDialog : public QDialog
{
    Q_OBJECT
public:
    explicit NameTabDialog (QWidget *parent = 0);
    ~NameTabDialog();

    enum DialogMode { AddTabMode, RenameTabMode };
    QString name() const;

public slots:
    void setDialogMode (DialogMode dialogMode);
    void setExistingNames (const QList<QString>& existingNames);

private:
    Ui::NameTabDialog *ui;
    QList<QString> m_existingNames;

private slots:
    void validateName();
};

#endif // NAMETABDIALOG_H
